/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.aptech.childcare.entities;

import com.aptech.childcare.components.PropertyIndex;

/**
 *
 * @author Xuan Hieu
 */
public class Agegroup implements PropertyIndex {
    private int ageGroupID = -1;
    private String ageGroup;
    private float fees;
    private String note;
    private String lastError;

    /**
     * @return the ageGroupID
     */
    public int getAgeGroupID() {
        return ageGroupID;
    }

    /**
     * @param ageGroupID the ageGroupID to set
     */
    public void setAgeGroupID(int ageGroupID) {
        this.ageGroupID = ageGroupID;
    }

    /**
     * @return the ageGroup
     */
    public String getAgeGroup() {
        return ageGroup;
    }

    /**
     * @param ageGroup the ageGroup to set
     */
    public void setAgeGroup(String ageGroup) {
        this.ageGroup = ageGroup;
    }

    /**
     * @return the fees
     */
    public float getFees() {
        return fees;
    }

    /**
     * @param fees the fees to set
     */
    public void setFees(float fees) {
        this.fees = fees;
    }
    /**
     * @return the lastError
     */
    public String getLastError() {
        return lastError;
    }

    /**
     * @param lastError the lastError to set
     */
    public void setLastError(String lastError) {
        this.lastError = lastError;
    }

    /**
     * @return the note
     */
    public String getNote() {
        return note;
    }

    /**
     * @param note the note to set
     */
    public void setNote(String note) {
        this.note = note;
    }

    public Object getPropertyValue(int index) {
         String value ="";
       switch (index) {
           case 1:
                value = String.valueOf(this.getAgeGroupID());
                break;
           case 2:
                value = this.getAgeGroup();
                break;
            case 3:
                value = String.valueOf(this.getFees());
                break;
           case 4:
               value = this.getNote();
                break;

        }
       return value;
    }

    public void setPropertyValue(int index, Object value) {
    }

    public Class getPropertyClass(int index) {
       return String.class;
    }
}